import Vue from 'vue'
import './plugins/axios'
import App from './App.vue'
import router from './router'
import store from './store'
import 'axios'
import './plugins/element.js'
import 'bootstrap'
import 'bootstrap/dist/css/bootstrap.min.css'
import './assets/FontClass/search/iconfont.css'
import './assets/FontClass/message/iconfont.css'
import './assets/FontClass/logout/iconfont.css'
import './assets/FontClass/task/iconfont.css'
import './assets/FontClass/info/iconfont.css'
import './assets/FontClass/profile/iconfont.css'
import './assets/FontClass/more/iconfont.css'
import 'apexcharts'
import './assets/FontClass/report/iconfont.css'
import './assets/Symbol/report/iconfont'
import './assets/Symbol/summary/iconfont'
import './assets/Symbol/patient/iconfont'
import VueApexCharts from 'vue-apexcharts'
import {request} from "./api/request";
import Qs from 'qs'



Date.prototype.format = function(fmt) {
  var o = {
    "M+" : this.getMonth()+1,                 //月份
    "d+" : this.getDate(),                    //日
    "h+" : this.getHours(),                   //小时
    "m+" : this.getMinutes(),                 //分
    "s+" : this.getSeconds(),                 //秒
    "q+" : Math.floor((this.getMonth()+3)/3), //季度
    "S" : this.getMilliseconds()             //毫秒
  };
  if(/(y+)/.test(fmt)) {
    fmt=fmt.replace(RegExp.$1, (this.getFullYear()+"").substr(4 - RegExp.$1.length));
  }
  for(var k in o) {
    if(new RegExp("("+ k +")").test(fmt)){
      fmt = fmt.replace(RegExp.$1, (RegExp.$1.length==1) ? (o[k]) : (("00"+ o[k]).substr((""+ o[k]).length)));
    }
  }
  return fmt;
};

Vue.config.productionTip = false

Vue.use(VueApexCharts)
Vue.component('apexcharts', VueApexCharts)
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';


new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app');

request({
  url: 'patient/list/2',
  method: 'get'
}).then(function (data) {
  console.log(data);
});